package org.chen.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.chen.common.VerificationCode;

import java.util.Optional;

public interface VerificationCodeService extends IService<VerificationCode> {
    VerificationCode findByEmailAndCode(String email, String code);

    VerificationCode findTopByEmailOrderByExpiryDateDesc(String email);
}
